'use strict';
// Declare app level module which depends on views, and components
 var app=angular.module('moviecat', ['ngRoute','moviecat.in_theaters',"movie.details"]);
    app.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/:type/:page?', {
      templateUrl:'in_theaters/view.html',
      controller:'in_theaterCon'
      })
  $routeProvider.otherwise({ redirectTo: '/in_theaters/1' });
}])
   app.controller("SearchController", function ($scope,$location) {
   $scope.searchText="美人鱼";

   $scope.search= function () {
    $location.path("/search");
    $location.search('keyword', $scope.text);
  }
})
